package org.game.minesweeper.support;

import javafx.application.Platform;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.geometry.Insets;
import javafx.scene.control.Label;
import javafx.scene.image.Image;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.VBox;
import org.game.constant.APIConstant;
import org.game.util.StringUtil;

import java.net.URL;
import java.util.ResourceBundle;
import java.util.concurrent.TimeUnit;

public abstract class MinesweeperInit extends MinesweeperMap {
    @FXML
    protected VBox mainPane;

    @Override
    public void initialize(URL url, ResourceBundle resourceBundle) {
        initMinesweeperMap();
        initMainPane();
        initTopBar();
    }

    @Override
    protected void initMainPane() {
        mainPane.getChildren().remove(lastMap);
        mainPane.getChildren().add(minesweeperMap);
    }
}
